import bangRequest from "../request/bang";
// 添加广告
export const postAdvList = formdata => {
	return bangRequest.post("/advList", formdata)
}
// 获取广告列表
export const getAdvList = (pageNo = 1, pageSize = 3, keyword = "") => {
	return bangRequest.get("/advList", {
		params: {
			pageNo,
			pageSize,
			keyword
		}
	})
}

// 根据ID删除广告
export const deleteAdvListById = id => {
	return bangRequest.delete("/advList/" + id);
}

// 根据ID获取广告信息
export const getAdvListById = id => bangRequest.get("/advList/"+id);

// 修改
export const putAdvList = formdata => bangRequest.put("/advList",formdata);